.hot-sales-ranking {
  height: calc(100vh - env(safe-area-inset-bottom));
  width: 100vw;
  background-color: #f5f5f5;


  .scroll-view-x-content-item {
    flex-shrink: 0;
    width: 128rpx;
    border: 1rpx solid #222426;
    background-color: #fff;
    text-align: center;
    color: #676767;
    padding: 20rpx;
    border-radius: 20rpx;
    font-size: 30rpx;
    white-space: nowrap;
  }

  .scroll-view-x-content-active-item {
    background-color: #4fc3f7;
    color: #fff;
  }

  /* 主容器：渐变背景+圆角+阴影+弹性布局 */
  .hot-sales-tip {
    height: 90rpx;
    width: 95vw;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 8rpx 16rpx;
    background: linear-gradient(135deg, #fff8f0 0%, #fff2e8 100%);
    border-radius: 32rpx;
    box-shadow: 0 2rpx 8rpx rgba(255, 153, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
  }

  /* 装饰圆点 */
  .tip-dot {
    width: 8rpx;
    height: 8rpx;
    background-color: #ff7d00;
    border-radius: 50%;
    margin-right: 10rpx;
    animation: pulse 2s infinite;
  }

  /* 图标样式 */
  .tip-icon {
    color: #ff7d00;
    font-size: 24rpx;
    margin-right: 12rpx;
  }

  /* 提示文本 */
  .hot-sales-tip-text {
    font-size: 24rpx;
    color: #666;
    line-height: 36rpx;
    flex: 1;
    /* 占满剩余空间 */
  }

  /* 更新时间高亮 */
  .update-time {
    color: #ff7d00;
    font-weight: 500;
    margin-left: 8rpx;
  }

  /* 热销标签 */
  .tip-tag {
    background-color: #ff7d00;
    color: white;
    font-size: 20rpx;
    padding: 2rpx 12rpx;
    border-radius: 16rpx;
    margin-left: 12rpx;
    font-weight: 500;
  }

  /* 动画效果 */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10rpx);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.2);
      opacity: 0.8;
    }

    100% {
      transform: scale(1);
    }
  }

}


.hot-sales-ranking-productList {
  margin-top: 15rpx;
  height: calc(100vh - env(safe-area-inset-bottom) - 215rpx);

  .hot-sales-ranking-productList-product-card {
    padding: 10rpx;
    background-color: #fff;
    width: 700rpx;
    box-sizing: border-box;
    margin: 0 auto;
    margin-bottom: 25rpx;
    border-radius: 20rpx;
    display: flex;
    position: relative;
    .hot-sales-ranking-productList-product-card-image {
      width: 210rpx;
      height: 210rpx;
      border: 1rpx solid #a28a5d;
      border-radius: 30rpx;
      overflow: hidden;
      position: relative;
      flex-shrink: 0;

      .hot-sales-ranking-productList-product-card-image-rank-info {
        position: absolute;
        left: 10rpx;
        top: 12rpx;
        color: #a28a5d;
      }
    }

    .hot-sales-ranking-productList-product-card-info {
      margin-left: 20rpx;
      box-sizing: border-box;
      overflow: hidden;
      .hot-sales-ranking-productList-product-card-info-product-name {
        /* 1. 限制文本不换行（关键） */
        white-space: nowrap;
        /* 2. 溢出部分隐藏（关键） */
        overflow: hidden;
        /* 3. 溢出文本显示省略号（关键） */
        text-overflow: ellipsis;
        /* 可选：设置宽度（根据布局需求调整，不设置则继承父容器宽度） */
        width: 450rpx;
        /* 或固定宽度，如 300rpx */
      }
      .hot-sales-ranking-productList-product-card-info-tip{
        color: #d97247;
        margin-top: 10rpx;
      }
      .hot-sales-ranking-productList-product-card-price{
        display: flex;
        margin-top: 80rpx;
        align-items: baseline;
        .hot-sales-ranking-productList-product-card-price-symbol{
            font-size: 20rpx;
        }
        .hot-sales-ranking-productList-product-card-price-value{
          font-size: 30rpx;
        }
      }
    }
    .shopping-cart{
      width: 60rpx;
      height: 60rpx;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #ececec;
      border-radius: 999rpx;
      position: absolute;
      bottom: 20rpx;
      right: 25rpx;
    }
  }

}